package cn.edu.csmzxy.rk233x.auth_system.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import java.util.List;
/**
 * @author wumxing
 * @date 2025/10/15 16:38
 * @description
 */

@Data
@Schema(description = "用户请求参数")
public class UserDTO {

    @Schema(description = "用户名", example = "testuser")
    @NotBlank(message = "用户名不能为空")
    @Size(max = 50, message = "用户名长度不能超过50")
    private String username;

    @Schema(description = "密码", example = "123456")
    @NotBlank(message = "密码不能为空")
    private String password;

    @Schema(description = "真实姓名", example = "测试用户")
    private String realName;

    @Schema(description = "部门ID", example = "1")
    private Long deptId;

    @Schema(description = "状态（0-锁定，1-正常）", example = "1")
    private Integer status = 1;

    @Schema(description = "角色ID列表", example = "[1,2]")
    private List<Long> roleIds;
}